package com.share.hello.model;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author caifan
 * @since 2021/10/29
 * description:
 */
@Data
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = -6014176929825459781L;
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableLogic(value = "null", delval = "now()")
    private LocalDateTime deleteTime;

    @TableField(value = "last_login_time")
    private LocalDateTime lastLoginTime;

    private String nickname;

    private Integer age;

    private String username;

    private Integer status;

    private String cardNo;

    private String password;

    private String salt;

    private String email;

    @Version
    private Integer version;

    private Integer gender;

    private String phone;
}
